<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Tests</title>
        <link href="resources/styles/bootstrap.css" rel="stylesheet"/>
    </h:head>
    <h:body>
        <h:form>
            <h:panelGrid columns="1">
                <h:commandButton  class="btn-large" value="#{label['insert']}" action="#{mainBean.insertAll()}"/>
                <br/><br/>
                <h:outputText value="#{label['email']}"/>
                <h:inputText value="#{mainBean.email}"/>
                <h:commandButton class="btn" value="#{label['send']}" action="#{mainBean.sendEmail()}"/>               
            </h:panelGrid> 
            <br/><br/>
            <h:panelGrid columns="1">
                <h:selectOneMenu id="country-list" class="span6">
                    <f:selectItems value="#{mainBean.countryList}"/>
                </h:selectOneMenu>
            </h:panelGrid>
            <br/><br/>
            <h:commandButton class="btn" value="#{label['pt']}">
                <f:ajax render="@form" listener="#{mainBean.toPortuguese()}"/>
            </h:commandButton>
            <h:commandButton class="btn" value="#{label['en']}">
                <f:ajax render="@form" listener="#{mainBean.toEnglish()}"/>
            </h:commandButton>
        </h:form>
    </h:body>
</html>